package com.yanyilu.basing.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sxx
 * @since 2020-10-27
 */
@Data
@Accessors(chain = true)
@TableName("order_form")
public class OrderForm extends Model<OrderForm> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "order_form_id", type = IdType.AUTO)
    private Integer orderFormId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 订单号
     */
    @TableField("order_number")
    private String orderNumber;

    /**
     * 时间
     */
    @TableField("add_time")
    private Integer addTime;

    /**
     * 报名费
     */
    @TableField("apply_fee")
    private BigDecimal applyFee;

    /**
     * 押金
     */
    private BigDecimal deposit;

    /**
     * 交易状态
     */
    @TableField("trading_status")
    private Integer tradingStatus;

    /**
     * 运费
     */
    @TableField("ship_cost")
    private BigDecimal shipCost;

    /**
     * 鞋码
     */
    @TableField("shoe_size")
    private Float shoeSize;

    /**
     * 商品名
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 按钮状态
     */
    @TableField("btn_status")
    private Integer btnStatus;

    /**
     * 用户名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 收货地址
     */
    @TableField("shipping_addr")
    private String shippingAddr;

    /**
     * 联系方式
     */
    @TableField("contact_details")
    private String contactDetails;

    /**
     * 物流状态
     */
    @TableField("mail_status")
    private Integer mailStatus;

    /**
     * 物流订单号
     */
    @TableField("mail_order_no")
    private String mailOrderNo;


    private String addr;




    @Override
    protected Serializable pkVal() {
        return this.orderFormId;
    }

}
